import React from 'react';
import { BrowserRouter, Routes, Route } from 'react-router-dom';
import Home from './views/Home';
import Login from './views/Login';
import { AuthProvider } from './context/AuthContext';

const App: React.FC = () => {
   return (
      <AuthProvider>
         <BrowserRouter>
            <Routes>
               <Route path="/login" element={<Login />} />

               <Route path="/" element={<Home />} />

               <Route path="*" element={<div>404 Not Found</div>} />
            </Routes>
         </BrowserRouter>
      </AuthProvider>
   );
};

export default App;